package com.ding.learn.test.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.Arrays;
import java.util.List;

public class JSonTest2 {
    public static void main(String[] args) {
       /* String boxString = "{\"max_box_count\":80,\"max_order_fee\":4800,\"late_time\":1617309000,\"min_stop_num\":50,\"max_stop_num\":55,\"max_distance\":100,\"max_delivery_time\":600}";
        long end_time = JSON.parseObject(boxString).getLong("late_time");
//        JSONObject json = JSON.parseObject("");
//        System.out.println(json.getString("name"));
        System.out.println(end_time);
        System.out.println(Integer.parseInt(Math.round(4.58795)+""));*/

        List<String> list = Arrays.asList("ding,xuan,zhu".split(","));
        list.stream().forEach(n->{
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(n);
        });
        System.out.println("end ====================");
    }
}
